namespace ghost
{
    export class SkillConfig
    {
        public static _skillDict: {[skillId:number]:SkillCfg}={};
        public static table:{[skillId:number]:Object_skill};
        public static getSkill(skillID:number):SkillCfg
		{		
			let cfg:SkillCfg;
			let table:any = this.table;
			let createSkillID:number;
			//没有此技能改为使用100101的数据
			createSkillID = table[skillID] == null?100101:skillID;					
			if(SkillConfig._skillDict[createSkillID] == null)	
			{
				cfg = SkillConfig._skillDict[createSkillID] = new SkillCfg;
                cfg.dataSet(table[createSkillID]);				
			}	
			SkillConfig._skillDict[skillID] = SkillConfig._skillDict[createSkillID];
			
			return SkillConfig._skillDict[skillID];
		}	        
    }
}